<template>
  <div>
    <el-carousel indicator-position="outside" interval=5000>
      <el-carousel-item v-for="item,index in 3" :key="index">
        <img class="img-card" :src="good.img[index]" alt="">
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
import { mapState } from 'vuex'
export default {
    computed:{
      ...mapState(['good'])
    }
}
</script>

<style>
.el-carousel{
width: 700px;
height: 730px;
position: absolute;
left: 260px;
}
.el-carousel__container{
  width: 700px;
height: 700px;
}
.el-carousel__indicators{
  position: relative;
  left: 0;
  bottom: 0;
}
.img-card{
  width: 700px;
}
  .el-carousel__item h3 {
    color: #475669;
    font-size: 18px;
    opacity: 1;
    line-height: 300px;
    margin: 0;

  }
  
  .el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
  }
  
  .el-carousel__item:nth-child(2n+1) {
    background-color: #d3dce6;

  }
</style>
